home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 19 / Amiga Plus Leser CD 19.iso / Tools / MorphOS / cvs-1.11.2 / source / lib / Makefile.MorphOS < prev    next >
Encoding:
Makefile  |  2002-11-18  |  2.1 KB  |  78 lines

  1. #
  2. # $Id$
  3. #
  4. # :ts=4
  5. #
  6. # AmigaOS wrapper routines for GNU CVS, using the RoadShow TCP/IP API
  7. #
  8. # Written and adapted by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  9. #                        Jens Langner <Jens.Langner@light-speed.de>
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version.
  15. #
  16. # This program is distributed in the hope that it will be useful,
  17. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. # GNU General Public License for more details.
  20. #
  21. # You should have received a copy of the GNU General Public License
  22. # along with this program; if not, write to the Free Software
  23. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24. #
  25.  
  26. TARGET    = libcvs.a.elf
  27.  
  28. #
  29.  
  30. CC        = ppc-morphos-gcc
  31. STRIP     = ppc-morphos-strip
  32. OBJDUMP   = ppc-morphos-objdump
  33. RANLIB    = ppc-morphos-ranlib
  34. AR        = ppc-morphos-ar
  35. RM        = rm -f
  36.  
  37. CPU      = -mcpu=604e
  38. CPUFLAGS = -mmultiple
  39. WARN     = -Wall
  40. OPTFLAGS = -O2 -fomit-frame-pointer -fstrength-reduce
  41. DEBUG    = -DDEBUG -g3 -O0
  42. CFLAGS   = -noixemul -I./ -I../amiga -I../amiga/netinclude -I../ -I../src -I/gg/ppc-morphos/sys-include -DHAVE_CONFIG_H $(CPU) $(CPUFLAGS) $(WARN) $(OPTFLAGS) $(DEBUG) -c
  43.  
  44. # CPU and DEBUG can be defined outside, defaults to above
  45. # using e.g. "make DEBUG= CPU=-mcpu=603e" produces optimized non-debug PPC-603e version
  46. #
  47. # OPTFLAGS are disabled by DEBUG normally!
  48. #
  49. # ignored warnings are:
  50. # none - because we want to compile with -Wall all the time
  51. #
  52.  
  53. OBJS     =  argmatch.o.elf getline.o.elf getopt.o.elf getopt1.o.elf md5.o.elf regex.o.elf savecwd.o.elf stripslash.o.elf \
  54.             xgetwd.o.elf yesno.o.elf sighandle.o.elf getdate.o.elf fnmatch.o.elf
  55.  
  56. #
  57.  
  58. all: $(TARGET)
  59.  
  60. #
  61.  
  62. %.o.elf: %.c
  63.     $(CC) $(CFLAGS) $< -o $@
  64.  
  65. #
  66.  
  67. $(TARGET): $(OBJS)
  68.     $(AR) rs $@ $(OBJS)
  69.  
  70. clean:
  71.     -$(RM) $(TARGET) $(OBJS)
  72.  
  73. #######################################
  74.  
  75.  
  76. #######################################
  77.  
  78.